package a_star

type tLine struct {
	from string
	to string
	weight int
}

func NewLine(from string, to string, weight int) ILine {
	return &tLine{
		from,to,weight,
	}
}

func (me *tLine) From() string {
	return me.from
}

func (me *tLine) To() string {
	return me.to
}

func (me *tLine) Weight() int {
	return me.weight
}